#include "User.h"



User::User()
{
}

User::User(int id, string name, string username, string password)
	:Model(id, name)
{
	this->username = username;
	this->password = password;
}


User::~User()
{
}

string User::getUsername()
{
	return username;
}

string User::getPassword()
{
	return password;
}

void User::setUsername(string username)
{
	this->username = username;
}

void User::setPassword(string password)
{
	this->password = password;
}

bool User::valid(string inputPassword)
{
	if (this->password == inputPassword) return true;
	else return false;
}
